package com.woupla.security;

import org.jboss.seam.faces.security.AccessDeniedView;
import org.jboss.seam.faces.security.LoginView;
import org.jboss.seam.faces.view.config.ViewConfig;
import org.jboss.seam.faces.view.config.ViewPattern;

import com.woupla.account.Authenticated;

@ViewConfig
public interface AppViewConfig {

	/*
	 * static enum Pages1 {
	 * 
	 * @ViewPattern("/admin.xhtml")
	 * 
	 * @Admin ADMIN,
	 * 
	 * @FacesRedirect
	 * 
	 * @ViewPattern("/private/*")
	 * 
	 * @LoginView("/desktop/login.xhtml")
	 * 
	 * @AccessDeniedView("/denied.xhtml")
	 * 
	 * @LoggedIn PRIVATE; }
	 */
	static enum Pages {
		
		@ViewPattern("/desktop/private/*")
		@Authenticated
		@LoginView("/desktop/login.xhtml")
		@AccessDeniedView("/desktop/denied.xhtml")
		PRIVATE,
		@ViewPattern("/desktop/private/companyGestion.xhtml")
		@Manager
		@AccessDeniedView("/desktop/denied.xhtml")
		COMPANY_VIEW,
		@ViewPattern("/desktop/login.xhtml")
		LOGIN;
	}
}
